package com.dataextend.mapper.cluster;

import com.dataextend.entity.RoleMenusEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface RoleMenusDao {
    int add(RoleMenusEntity roleMenusEntity);
    int update(RoleMenusEntity roleMenusEntity);
    void delete(Long id);
    RoleMenusEntity queryById(Long id);
    List<RoleMenusEntity> list(RoleMenusEntity roleMenusEntity);


    void deleteRoleId(Long roleId);
    void addRoleMenus(@Param("roleId") Long roleId, @Param("menusId") Long menusId);
}
